import request from '@/utils/request'

const questionTypeApi = {
    List: '/questionType/list',
    Save: '/questionType/save',
    Add: '/questionType/add',
    Update: '/questionType/update',
    Detail: '/questionType/detail',
    Delete: '/questionType/delete',
}
// 列表
export function questionTypeList (parameter) {
    return request({
        url: questionTypeApi.List,
        method: 'post',
        data: parameter
    })
}
// 保存
export function questionTypeSave (parameter) {
    return request({
        url: questionTypeApi.Save,
        method: 'post',
        data: parameter
    })
}
// 新增
export function questionTypeAdd (parameter) {
    return request({
        url: questionTypeApi.Add,
        method: 'post',
        data: parameter
    })
}
// 修改
export function questionTypeUpdate (parameter) {
    return request({
        url: questionTypeApi.Update,
        method: 'post',
        data: parameter
    })
}
// 详情
export function questionTypeDetail (parameter) {
    return request({
        url: questionTypeApi.Detail,
        method: 'post',
        data: parameter
    })
}
// 删除
export function questionTypeDelete (parameter) {
    return request({
        url: questionTypeApi.Delete,
        method: 'post',
        data: parameter
    })
}
